home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 002 / altpage2.arc / ALTPAGE.PRN < prev    next >
Encoding:
Text File  |  1987-06-12  |  10.9 KB  |  331 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.                                     ALTPAGE, v1.2
  24.  
  25.                           (Print a document on both sides)
  26.                                     Documentation
  27.                                     June 12, 1987
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.           Written by:
  46.                Eric Ewanco
  47.                Sysop, SEAdog 130/3
  48.                7633 Beckwood Dr.
  49.                Fort Worth, TX 76112-6051
  50.                Voice : (817) 457-4737
  51.           A member of the DFW Gateway Net
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.           Page 1                                    AAALLLTTTPPPAAAGGGEEE Documentation
  74.  
  75.  
  76.           FORWARD          FORWARD          FORWARD
  77.  
  78.                Altpage is a program designed to allow you to print on  both
  79.           sides  of  printer paper by separating the even and odd pages or,
  80.           if you like,  the right and left pages.   This is a  50%  savings
  81.           over  printing  on  one side.   Altpage does this by counting the
  82.           number of lines while outputting each character to a file;  if  a
  83.           Form Feed is reached or the number of lines is 66,  then the out-
  84.           put file is switched.   Altpage is designed to work with most all
  85.           text files meant to be printed.   If you use files generated with
  86.           word processors,  the files must be converted into ASCII.    This
  87.           usually  comes  under  something described as "Convert to ASCII,"
  88.           "Print to disk," "Write as text file," or  something  like  that.
  89.           Altpage  does  not  understand  any formatting commands some word
  90.           processors use.  Word Star 2000 users will have to print to disk;
  91.           Word  Star  users  need  to "strip the high bit"; and others need
  92.           similar modifications.   Files generated using PC  Write  do  not
  93.           need  to be converted,  but any formatting codes are passed as is
  94.           and are not interpreted.   If you use these,  it  is  recommended
  95.           that  you  print  to  a disk file and then use ALTPAGE.   Altpage
  96.           works strictly from disk;  there is  no  maximum  document  size.
  97.           Document  size  is  limited  only  by what can fit on your online
  98.           drives.
  99.  
  100.           USAGE          USAGE          USAGE
  101.  
  102.                Altpage is used as follows: at  the  DOS  prompt,  you  type
  103.           ALTPAGE  followed  by the input file,  then odd pages file (right
  104.           pages),  and the even pages file (left  pages).    If  you  enter
  105.           ALTPAGE by itself, a description of its usage is displayed.
  106.                Altpage  will  proceed  to  convert  your  document.    When
  107.           finished, Altpage will print a message:
  108.  
  109.                     altpage END: processed xxx pages
  110.  
  111.           which tells you that it is done and how many pages it  processed.
  112.           If Altpage runs into an error, the following message will be
  113.           displayed:
  114.  
  115.           altpage ABORT: (error)
  116.  
  117.           where (error) is an MSDOS descriptive error.  Altpage then aborts
  118.           (errorlevel 1).
  119.  
  120.           PRINTING THE DOCUMENT          PRINTING THE DOCUMENT          PRINTING THE DOCUMENT
  121.  
  122.                There are several ways in which you can actually  print  the
  123.           documents.    You can specify two files and print them afterward,
  124.           or you can enter PRN for the first file and Altpage will print it
  125.           while  converting;  however,  that file will be lost and you will
  126.           have to rerun Altpage to make it again.   If you want to use  DOS
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.           Page 2                                    AAALLLTTTPPPAAAGGGEEE Documentation
  140.  
  141.  
  142.           2.0's  filtering  capabilities  or  type  in  the  text yourself,
  143.           specify [STDIN] for the input file;  the file will then  be  read
  144.           from standard input.  For instance:
  145.  
  146.           type altpage.doc |altpage [STDIN] altpage.odd altpage.evn
  147.  
  148.           This  will  do the same thing as "altpage altpage.doc altpage.odd
  149.           altpage.evn", but it does demonstrate the use of standard input.
  150.                After you create the proper files, you can print it out. Set
  151.           your  printer  to top of form and use your favorite print program
  152.           to print it out; however, make sure that you program doesn't for-
  153.           mat  the  input itself.   You can COPY to PRN,  use the DOS PRINT
  154.           program,  or even TYPE and redirect to PRN.   The first file  you
  155.           print  out  is  the odd pages file.   Then,  advance to about two
  156.           pages beyond the end of the document, tear off the paper,  remove
  157.           the  unprinted  paper  (the new paper that comes in to be printed
  158.           on, so you can insert your own), insert the document in BACKWARDS
  159.           (on  a  back feed printer,  that's with the text up;  on a bottom
  160.           feed,  text toward back),  align,  set it to the first page,  and
  161.           print  the  even pages file.  Now eject and replace the unprinted
  162.           paper so you're ready for another job.   You  can  now  punch  in
  163.           holes or whatever you need to do;  and you're done.   Here are my
  164.           recommendations for printing a file (foo.txt here):
  165.  
  166.           ** To convert, print, wait, and print again:
  167.           C>ALTPAGE foo.txt foo.odd foo.evn
  168.           C>COPY FOO.ODD PRN
  169.             (now switch sides)
  170.           C>COPY FOO.EVN PRN
  171.  
  172.           ** To convert,  put in PRINT queue and print in  background,  and
  173.           print again:
  174.           C>ALTPAGE foo.txt foo.odd foo.evn
  175.           C>PRINT FOO.ODD
  176.             (continue to use computer until printing is DONE)
  177.           C>PRINT FOO.EVN
  178.             (continue to use computer until done, and remove paper)
  179.  
  180.           ** To convert and print first side during conversion,  then print
  181.           second side; save only second side in disk file
  182.           C>ALTPAGE foo.txt PRN foo.evn
  183.             (prints first side, then switch sides)
  184.           C>COPY FOO.EVN PRN
  185.             (prints the second side)
  186.  
  187.  
  188.  
  189.           SPECIAL CASES          SPECIAL CASES          SPECIAL CASES
  190.  
  191.                Sometimes a printing job requires  special  handling.    For
  192.           instance, if you're printing a document on paper not the standard
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.           Page 3                                    AAALLLTTTPPPAAAGGGEEE Documentation
  206.  
  207.  
  208.           66 lines or 11 1/2 inches, you'll need to tell Altpage the number
  209.           of  lines,  otherwise  it  will  get  confused.   There are other
  210.           options,  too.   You give these options to Altpage  by  means  of
  211.           switches, letters that are preceded by a hyphen and go before the
  212.           file names.   You can have as many options as you need;  however,
  213.           each  needs  to  have a hyphen and you need to separate them with
  214.           spaces or tabs.   They can go in any order  themselves,  but  all
  215.           must  come  together,  before the filenames and after the command
  216.           ALTPAGE.  All switches must be entered in LOWERCASE.
  217.                The switch for changing the page length is -p. The -p is IM-
  218.           MEDIATELY (NO SPACES) followed by the page length which should be
  219.           of reasonable number (less than 32768).  Doing this redefines the
  220.           number of lines it takes for ALTPAGE to switch "sides."  The num-
  221.           ber is in printed lines.
  222.                Normally,  ALTPAGE will force a the paper to be  ejected  an
  223.           extra page on EVEN page files (the second side) if the first side
  224.           of this page is printed.   Think of it this way: if your document
  225.           has an odd number of pages,  the odd page file will have one more
  226.           printed page than the even page file.  When you print it out, the
  227.           last  odd page would still be in the printer after the even pages
  228.           have been printed because there were fewer even pages.    Altpage
  229.           is  smart  and can tell if there are an odd number of pages,  and
  230.           when there are, adds a Form Feed code to the end of the even page
  231.           file  to  get  that  last  page  out so it won't be inadvertently
  232.           printed over.   If this causes a  problem,  the  -n  option  will
  233.           supress this.   Also, if you printer does not respond to the Form
  234.           Feed code (ASCII 12),  which some do not,  give  the  -s  option,
  235.           which makes ALTPAGE "emulate" a Form Feed by adding line feeds to
  236.           get to the next page.   This is called a  "soft"  Form  Feed  and
  237.           takes  longer,  but works on any printer.   Try it without the -s
  238.           option first; if it doesn't work, use the option.
  239.                In some MSDOS text files, there is a Ctrl-Z (ASCII 26) writ-
  240.           ten  at the end of the file to indicate the end.   This is a kind
  241.           of archaic practice and isn't always done.   It doesn't matter to
  242.           ALTPAGE what is done, but it may matter to you what ALTPAGE does.
  243.           If you want your output files to have Ctrl-Zs at the end of them,
  244.           specify the -z option.  They will always have Ctrl-Zs if your in-
  245.           put file has a Ctrl-Z at the end.  Personally I cannot think of a
  246.           use for this, but if you run into problems processing your output
  247.           files with another program, you might try this.   It is not some-
  248.           thing you use everyday and you can do well without it.
  249.                Here are some examples for options to clarify the above:
  250.  
  251.           ALTPAGE -p33 -s foo.txt foo.odd foo.evn
  252.             Use a 33 line page and a soft form feed to eject the paper.
  253.  
  254.           ALTPAGE -z -n -p55 foo.txt foo.odd foo.evn
  255.             Use a 55 line page, do not eject the last page, and add Ctrl-Zs
  256.           at the end of foo.odd and foo.evn.
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.           Page 4                                    AAALLLTTTPPPAAAGGGEEE Documentation
  272.  
  273.  
  274.                There is an additional option which I  give  to  people  who
  275.           send  in  money  to cut the entire propaganda that comes on every
  276.           time you run the program.   This is definitely not  a  punishment
  277.           for  those  who  do  not  pay,  because  I  leave that up to you.
  278.           Rather, it is a reasonable "thank you" for users who do register.
  279.  
  280.           PROGRAM INFORMATION          PROGRAM INFORMATION          PROGRAM INFORMATION
  281.  
  282.                This program was written in Turbo C on an IBM PC with a 20
  283.           meg hard disk, DOS 3.1. However, the program works under 2.1. The
  284.           source code is transportable to any Kerninghan  and  Ritchie/ANSI
  285.           compatible C compiler (Lattice, MS, etc.).  An average 134 page
  286.           document takes about 3 minutes and 45 seconds to convert. Contact
  287.           the author at the address above for more information.
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.